<?php
include 'global.php';
include 'sub/editor.php';
include 'infoEdit.php';
include 'sub/header.php';
?>

<form method="post" onsubmit="tinyMCE.get('product_detail').save();"  action="<?php echo $_SERVER['REQUEST_URI']; ?>"  enctype="multipart/form-data">
    <div class="content-outer">
        <div class="content-inner">
            <div class="title_border">
                <h1>Cập nhật tin tức</h1>
                <div style="margin-top: 15px" class="rightbt">
                    <ul>
                        <li><a href="info"><span><span>Danh sách tin tức</span></span></a></li>
                    </ul>
                </div>
            </div>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="duhoctb">
                <tr>
                    <td><br />
                        <table width="100%" border="0" cellspacing="0" cellpadding="4" class="productTb">
                            
                            <tr>
                                <td align="right">Tiêu đề</td>
                                <td><input type="text" name="title" value="<?php echo $entryrow['title'] ?>" class="text"/></td>
                            </tr>
                            <tr>
                                <td align="right">Tiêu đề tiếng Anh</td>
                                <td><input type="text" name="title2" value="<?php echo $entryrow['title2'] ?>" class="text"/></td>
                            </tr>
                            <tr>
                                <td align="right">Giới thiệu</td>
                                <td><input type="text"  name="intro" value="<?php echo $entryrow['intro'] ?>" class="text" /></td>
                            </tr>
                            <tr>
                                <td align="right">Giới thiệu tiếng Anh</td>
                                <td><input type="text"  name="intro2" value="<?php echo $entryrow['intro2'] ?>" class="text" /></td>
                            </tr>
                            <tr>
                                <td align="right">Ảnh đại diện</td>
                                <td><input type="file" name="file" id="file"  style="width: 300px"/></td>
                            </tr>
                            <tr>
                                <td align="right" valign="top">Nội dung</td>
                                <td><textarea name="content" style="height: 500px; width: 100%"><?php echo $entryrow['content'] ?></textarea></td>
                            </tr>
                             <tr>
                                <td align="right" valign="top">Nội dung tiếng Anh</td>
                                <td><textarea name="content2" style="height: 500px; width: 100%"><?php echo $entryrow['content2'] ?></textarea></td>
                            </tr>
                            <tr>
                                <td align="right">&nbsp;</td>
                                <td><input type="submit" name="button" id="button" value="Cập nhật tin tức" /></td>
                            </tr>
                        </table></td>
                </tr>
            </table>
        </div>
    </div>

</form>
<?php
                                        include 'sub/footer.php';
?>